package com.lovo.service.impl;

import com.lovo.dao.FactoryDetailDAO;
import com.lovo.model.FactoryDetail;
import com.lovo.service.FactoryDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @title
 * @author: luo
 * @date: 2020/11/19 11:37
 */
@Service
public class FactoryDetailServiceImpl implements FactoryDetailService {
    @Resource
    private FactoryDetailDAO factoryDetailDAO ;

    @Override
    public List<FactoryDetail> findAll() {
        return factoryDetailDAO.findAll();
    }

    @Override
    public void delete(FactoryDetail factoryDetail) {
        factoryDetailDAO.delete(factoryDetail);
    }
}
